﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WRSManagementSystem.DomainModel.Entities.Person>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Edytuj</h2>
    
    <%
        Html.EnableClientValidation();%>    
    <%
        using (Html.BeginForm("Edit", "People", FormMethod.Post, new {enctype = "multipart/form-data"}))
        {%>
        <%
            Html.RenderPartial("PersonEditView", Model); %>
        <%}%>
    <div>
        <%=Html.ActionLink("Powrót do listy", "../People/Index")%>
    </div>
</asp:Content>
